package com.gxa.lssy.boot.service;

import com.gxa.lssy.boot.mapper.TestMapper;
import com.gxa.lssy.boot.pojo.Test;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 */
@Service
public class TestServcie {
    @Resource
    private TestMapper testMapper;

    public Map<String, Object> insert(Test test) {
        Map<String, Object> map = new HashMap<>();
        testMapper.insert(test);
        map.put("code", 200);
        map.put("msg", "新增数据成功");
        return map;
    }
}
